@use '../name.scss' as *;
@use '../src/var.scss' as *;

$component: 'MailEdit';

@include buildView($component) {
  height: inherit;
  width: calc(100vw - 60px);
  text-align: left;
  color: $bg-color-light;
  display: flex;
  align-items: center;
  justify-content: space-between;
  @include buildWrap($component, 'left') {
    width: 55%;
    height: inherit;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    
    box-sizing: border-box;
    .el-tabs{
      width: 100%;
      height: 100%;
    }
    .el-tabs__item{
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 6px 1.5vw;
      margin: 0;
      box-sizing: border-box;
    }
    .el-tabs__content{
      width: 100%;
      height: calc(100% - 60px);
      overflow: scroll;
      scrollbar-width: thin;
    }
  }
  @include buildWrap($component, 'mid'){
    width: 20%;
    height: inherit;
    background-color: $bg-color-dark-weak;
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
  }
  @include buildWrap($component, 'right') {
    width: 25%;
    height: inherit;
    background-color: $bg-color-dark-deep;

    @include buildWrap($component, 'templates') {
      height: calc(100% - 284px);
      width: 100%;
      overflow-y: scroll;
      scrollbar-width: thin;
      box-sizing: border-box;
      padding: 6px;
      .title{
        width: 100%;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        .el-icon{
          margin: 0 10px;
        }
      }
      
    }
    @include buildWrap($component, 'StarContribute') {
      height: 260px;
      width: 100%;
    }
    @include buildWrap($component, 'tools') {
      border-top: 1px solid #fff;
      height: 24px;
      box-sizing: border-box;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-evenly;

      .el-icon {
        cursor: pointer;
        transition: all 0.4s ease-in-out;
        &:hover {
          filter: drop-shadow(0 0 4px $force-color) brightness(1.5);
          transform: scale(0.9);
        }
      }
      .el-icon2 {
        cursor: pointer;
        height: 18px;
      
        
        transition: all 0.4s ease-in-out;
        &:hover {
          filter: drop-shadow(0 0 4px $force-color) brightness(1.5);
          transform: scale(0.9);
        }
      }
    }
  }
}

.el-tree {
  
  background: #111621 !important;
  color: #fff !important;
 
}

.el-tree-node__content:hover {
  background-color: #111621 !important;
}
.el-tree-node__content:active {
  background-color: #111621 !important;
}
.el-tree-node__content:focus {
  background-color: #111621 !important;
}

.previewComponent{
  height: 300px;
  width: 100%;
  overflow: scroll;
  scrollbar-width: thin;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

